Fixes directory nesting