After some fiddling I was able to get the file permissions working by adding the following to the script:
--def "exec=chmod 775 '{file}'"
However, it seems the parent directory that gets created is having similar issues, is there a variable like {file} for the other folders that get created by ...