Fixed partial reference name in getChildren() for partials in subfolders
refactored partialization to its own method

cleaned up same directory case