implement support for path validation in ConfigVariableString, free const for everybody