build.py: fix dependency resolution and resource embedding (regression caused by rename from medea to medealib)