build-image.sh: Fix clean up when not using tmpfs
Use free + cache to get available memory