builder: fix a situation where entrypoint was improperly set in stringform

And check expected entrypoint in inspect.