fixed bash -u option support in validation file

fixed bash -u option support in validation file