added getcwd to bitbucketpost