Handle hidden directories as well