Add dep check to the build task