Changing condition checking for triggering build