fix for non-interactive bash session