Set the dm ioctl version
fluff
fix resource leak in load_file