fix(shell/lean.cpp): use binary mode to open cache file