replacing file-path-join with the implementation from file-path-join