Make maximum memory 60% of available memory

Also added 'apt' as a dependency for debian based os