Added if statement to use xarg -J for OSX and -I otherwise