make shell commands valid