Bind default-directory to working-dir on checkout.

Without this, actions in resp. checkout function will affect the project
that is currenly `default-directory`.
Merge pull request #1431 from rejeep/checkout-default-directory

Bind default-directory to working-dir on checkout.