Add full stdio redirection support to program scheduler
Add flags parameter to create_directory function

Add flag to control if it should be an error if the directory already
exists.
Add some more debug messages to program loading