Only need backslash when not in script.
Cache optdir fetch.
Add arg override for OPTDIR.