Don't modify path argument
Merge pull request #263 from etehtsea/fix-arg-modify

Don't modify path argument