Fixed: added flag to prevent save plot dialog code from running if
user did not specify an output directory