Removed goto uses in SDCardUtil.cpp, instead moving it into a function

why change this to int?