Use regexp.xexec(path) if present