Made output directory optional.  If not specified CWD will be used if user confirms.