Fixed code style and try all flow-extensions during module resolving