bash error redirection fixed