buildbot: fix error when dir doesn't exist