Adds a check to ensure the specified output directory actually exists.