def prevent_dir_name_collisions
      
      # Find directories beginning with test directory name
      #
      dirs = Dir.glob("#{@options[:path]}/*").select { |d|
        File.directory?(d) && d.match(/#{@options[:dir]}($|-\d+$)/)
      }.size

      # If matching directories are found, increment the dir name
      # e.g. "test-site-2"
      #
      if dirs > 0
        @options[:dir] << "-#{dirs += 1}"
      end
    end
def prevent_dir_name_collisions
      
      # Find directories beginning with test directory name
      #
      dirs = Dir.glob("#{@options[:path]}/*").select { |d|
        File.directory?(d) && d.match(/#{@options[:dir]}($|-\d+$)/)
      }.size

      # If matching directories are found, increment the dir name
      # e.g. "test-site-2"
      #
      if dirs > 0
        @options[:dir] << "-#{dirs += 1}"
      end
    end
If necessary append a number to directory to avoid directory collision