Fixed bug with paths containing .. and .