Properly handle absolute paths in Globals::localize_path
This give a proper fix for #4280 - #3106 , allowing absolute paths
that starts from the file system, not the resource folder
(cherry picked from commit 2f2cea070e062415f290103f1823ab17ea4e5874)