added support for running under csh