Updated loader to correctly read paths.
Better handling of relative and absolute paths.