config: use chmod() instead of fchmod()