Check filename on make_file_dirty
Check file is not None
Syntax for repl
Show full command in exception