./Config: Remove unneeded code and handle ^D