Bug fix: Routing failure when dir path contains a tilde (Issue #291)