Fix apache existence check