FIXED startup script

change to script dir before checking if working copy exists