Revise syntax of system call in script