Add better handling for non-interactive shell sessions in bash-profile