fix(android-build): replace glob with dirent in baseapi