parsePath ensures non-empty in case of absolute-path.