Fixed flex checks to properly check for license files