Move post commit hook into its own script