Sanitize running commands