adds path mangling so that script can be run without install