Fix a bug when the cmd line is just the return line charactere.