added check for noninteractive shells; removed execution of /etc/bash* subscripts