Fixing path sanitization for '' case.

Closes #55.