Timeouts exits were not trapping dot files.
added function for better directory navigation