DF-5129 remove redundant code and fix path for script for teamcity