another attempt at getting the script to know what directory it's in