modified git hook for local directories