remove ./ from paths in addition to ../