Fix install when hook files does not exist