Read max memory limit from Linux shell script