Make resolve work without trailing newline.