[demos] update minimal_cpp_demo
[core.defaults] do not fail if module has not '__path__' attribute