Implemented parentPath as relativePath
Added check for ending forward slash in config parentPath and adding it if missing