Added PATH to the hook to make it work with rvm and the rest.