Created utility function to map files system files in environment

This will be used for packages such as libc and opengl which need copies
of system libraries.
Fix bug in file mapping, correctly handled edited paths in symbolic links

We manipulate paths to "improve" them when we map then into our environment
this must be done to the paths we are using to create symbolic links as
well or we get broken links.
WORK IN PROGRESS