Medium: apache: better handling of not installed apache

The RA misbehaved in case apache isn't installed (failed stop,
for instance).

- [ -x $VAR ] does not work if VAR is null
- avoid ugly basename(1) error