check_deleted_libs: export RE variable to be available in subshells