Added post-checkout hook

Modified the code to allow post-checkout hooks to minimize downtime while building externals.