Moved repo maintenence into its own file. Removed unneccessary dir changes in favor of git's -C command