Replace "system" call with self-written wrapper (outputs error if given command is missing)