util.isRootDir check for platforms/

platforms/ubuntu contains config.xml, so extra check is required