Revert "add semi-colon to end of each shell commands so that shell interprets them as independent commands"

This reverts commit bf5d4c0e0ed688514d6fb97d7c69d6a376eb2549.
consolidate calls to perlbrew env; use safe eval which correctly handles evaluates multi-line shell code
rework a bit for zsh4.