Misc module for ghc-modi.
generating "autogen/" if not exist (#326).