Modified to work correctly on both distributions and repositories.

Added Perl Critic.