Rakefile: adding ensure_postcommit_hook task