Ensure that we are in correct dir before checkout