Updating working rev after sync/switch

Fixes #13