Typo & localize OPTDIR to main.