Fix root path comparison

Fixes #124