MDL-47557 admin: fix preventexecpath use

The $CFG->preventexecpath, as the name implies,
is supposed to work for executables only, not
general file and directory settings.