Properly change permissions for pear installations. Refs #1039

@lucasmichot can you try this out? You might need to change the path to pear as I don't think it'll be in the path here.