Change post-receive hook to not overwrite itself mid running (remove and replace instead)