patching script interpreter paths