(eshell-rewrite-named-command): Changed the code around a bit so that