fix conditional for linux