[#1845] check for the hooks directory directly