[Native] Introduce createBitcodeFile utility function