Improve _run_apache.sh robustness with trap cleanup
Fix: _run_apache.sh -D FOREGROUND flag