Better method of getting absolute path to script dir