Make prepare-commit.sh return 0 if nothing was modified

If prepare-commit.sh is used as a pre-commit hook, returning 1 if nothing was modified causes git ammend to fail.