fix undefined var $memory_percent, issue #6
fix undefined var $os, issue #6
add check for Windows 7 -- 6.1, issue #6