Added memory limit check for *nix