fixed parsing of relative paths