Gather tool version before removing directory

Fixes #3. Since `tool-version' tries to go to the tool directory and it
is called in the `remove' command _after_ `rm' is called, the directory
doesn't exist to check the version for anymore.