Fixing version of precommit-hook to be backwards compatabile with old node versions