Updated '-s SHELL' option to work from either end.