fixes flakey path extension logic
Merge pull request #1 from RussTedrake/master

fixes flakey path extension logic