def check_and_prepare_basedir!(basedir,force)
      if File.exists? basedir
        if force
          rm_rf basedir, :verbose => true, :secure => true
        else
          exit_now! 1,"error: #{basedir} exists, use --force to override"
        end
      end
      mkdir_p basedir
    end
def check_and_prepare_basedir!(basedir,force)
      if File.exists? basedir
        if force
          rm_rf basedir, :verbose => true, :secure => true
        else
          exit_now! 1,"error: #{basedir} exists, use --force to override"
        end
      end
      mkdir_p basedir
    end
Checks that the basedir can be used, either by
 not existing, or by existing and force is true.
 In that case, we clean it out entirely

 +basedir+:: base directory where the user wants to create a new project
 +force+:: if true, and +basedir+ exists, delete it before proceeding

 This will exit the app if the dir exists and force is false