Fix wrong value being returned in InitDrive in imgread/common.cpp