Fixes in shell with external commands