Fix getting build status