Fix generate.rb when the output directory doesn't exist.  Fix guard to let it throw the exception (which is now ok).