dir = curWorkingDir || ""