Write pre_commit_file in same dir as final file