Remove leading ./ from paths (fixes #338)