Backport native path functions from Premake-dev

--HG--
extra : rebase_source : 3b04e17326838d151071a584d4742f3aaa65bc5c