init: Added check for non-login shells