add statement to check existance of csh.