Replace a system call in the spec helper