Fixed script to check for existence of ant.