themes:install: minor refactoring of checking out a ref
Merge remote-tracking branch 'origin/themes-install-refactor' into rails-3-develop