Updated to better handle locating scripts in subdirectory install.