Change how global variables work
Check if log and script directories exist, create them if not
Fix comments with double quotes inside them. Change lib files for new def command behavior.