Fixed issue #6458: Remove hooks directory.