sys:run-program errs on first invocation, works afterwards