Fixed system memory detection for Mac