Properly change permissions for pear installations. Refs #1039