fix NameError: global name 'resources_file' is not defined

Signed-off-by: Gowrishankar Rajaiyan <gsr@redhat.com>