Made get_avail_mem_size also use vmstat.external_page_count so that file-backed pages are considered available.