Added `needNode` and `needTarget` methods to `PrebuildConfig`