Try to be compatible with older gradle versions