Cleaned up use of mkdir and rmdir and other stuff that should just have been using BigTree's helper functions.