Added support for system context if run as root and fixed issue with setting hard limit