BUG: fixed bug for linux when checking RAM. fixed #212