Correct logic in travis build to ensure that deploy is only done when commit/push to master.