make script runnable locally

this makes it easier to reuse this script without teamcity