Avoid testing installation in system directories if they are not accessible