if output.endswith('.storyboard'):
      output = os.path.splitext(output)[0] + '.storyboardc'