get and set path so script can run from anywhere