Fixed root detection in installation_advanced