Add JS files check before executing esvalidate. Check for esvalidate existence. Change grep -P to -e for OSX compatibility.
Merge branch 'esvalidatecheck' of https://github.com/geraldvillorente/drupal-pre-commit into esvalidatecheck