Fixed php pre-commit to work when deleting files