use GetModuleFileName more consistently