use smartmatch to compare paths
Merge pull request #1 from FROGGS/master

use smartmatch to compare paths