Removes extra slash from the path