fixed PATH problem with hook execution