This is better (params_lookup is not intended to be used in defines), just wonder if 

        $config_dir  = $php::config_dir

works for you, as it would honour, eventually a custom value passed by users.