Travis build behaving oddly whereas it all works in local build