Replace some string added with more proper path.join