fix tabs, syntax in commands, redirections