Since you set the default to '', temp will always be in the config, so this will never be set to tmp_path, but could be blank, which is no good.