Fixed bug with nested directories