ci_check_status: check branch master instead of last build

reason: pull requests are built when submitted, becoming the last
build. If the pull request does not pass Travis, the last build
becomes failed, but we do not want the script to fail