Two small fixes:

1) [taskbase] import fail_msg module so failure to find config
   file is properly displayed to stdout
2) [imagefactory] added conditional to check if imagestmpdir
   exists prior to the mkdir()