Making sure hidden directories are not traversed