Changed "dir" to "dir_"
Added some paths to look for binaries in since ST on OS X seems to launch with a minimal environment