Use make conditions instead bash conditions

Suggested by @jpommerening.