use execute_process instead of exec_program in FindAPACHE.cmake (#4948)

also remove trailing whitespaces as they break builds