Fixed extension uninstallation; closes #364.