Added logic to delete previous version of *.hive scripts