add getcwd() in line 83 in bats.py