Fix boolean checks and allow to build AAR using newer gradle version