build-sys: use AS_IF instead of shell if clause