Bug 1019219 - PassEnv warning messages are shown when deploy app

Fixed by moving the SHELL, USER, LOGNAME variables exclusion to the right function, which is used on start/restart of the cartridges.