Improved login shell initialization