Fixed bug to get to nested directories