(util) Add specific method to resolve paths starting with '~' char