Combine setPaths() and setDefaultPath()
setPath: Omit the last set for temporary variable as it's unneeded there.
Merge pull request #4 from stefanbeller/lastpathomitvar

setPath: Omit the last set for temporary variable
Merge pull request #667 from dorkster/setpaths

Combine setPaths() and setDefaultPath()