Make buildbot task work with different dirs.