improve error message on failing exec()