Revert "Revert "Added fork support to hub flow init script.""

This reverts commit 844beae3b775de568396a7fda9093351d4d1ef3e.