fix(nested dirs): Fixed issue with first level nested directories being attached to the wrong object