Updated for perlbrew, and some modifications to certain scripts.