fix error handling in case execlp() fails