attempt to autodetect a directory of script