fixing error in bitbucket.sh