Refactored combinePath Method out of the loader