Minor cleanup
Bring back platform specific filesystem handling from other modules
Whitespace changes
Check if logfile to open was removed before trying opening
Fix recursive log file iterators
Fix ScriptCommand exit function to call Script.exit
Wrap Script.execute to ScriptCommmand.execute
Make sure execute functions return command returncode
Pass script.check_command to subcommands