Resolve $path earlier than creating env hash for MB/MakeMaker

This will prevent passing literal "~/perl5" to MM/MB install paths