Better parsing for relative paths.