Fixed apt key detection