fixed an uninitialized variable warning, moved sh_openfs() directly into main