Use `safe_system` instead of `abort unless system`. Also a good idea for here (and above) to pass each argument as a separate parameter to system calls rather than a single string.