Fixed getting hw id from filename