optimiser run has two times the tmpl file specified
argv is a mandatory argument for OPAL, however in case of a optimiser run there is an additional argument --inputfile=$TEMPLATES/$FNBASE.tmpl. This can be removed and the argv used.
To upload designs, you'll need to enable LFS. More information