command/build: this action will check "main" prop of package.json first; improve stablitiy