typo fixes
chown -r required to properly change perms
$CONFIDR is CONFDIR