fix selecting flavor due to os.path.split and __import__ using filepath.
Merge pull request #75 from Traksewt/master

Fix flavor selection