Seems a little weird that the behavior would change based on which directory you run this from. If you want to allow updating or not-updating, can you just add a commandline options? Or maybe even better, have the repository update be a separate script.