Fix get_available_memory problem

Restored olf get_available_memory() function because
sysconf mased implementation were ignoring cached memory.
Remove deprecated file, update gitignore