Re-write imports for fork.
Construct a consistent block ID for storing blocks.