Add normalizePath, fix #1
Add a test for #1