added additional contraint before running a build from rake task