Change legacy unary numeric checking syntax into bash arithmetic