Fix postcommit hook