use same alias check in bash and zsh

The same check works in both so there is no need to conditionally
do different things there. (Pity the bash approach was prettier.)
make __perlbrew_purify more shellish
make zsh/bash perlbrew() more shellish
Merge pull request #425 from ap/shellish

Some small zsh/bash code improvements