Fix mishandling of standalone paths.