add directory directive to specify working directory
reverse the paths array so that arg is important than local file;
add stdout and stderr directive to save the output of the command;