some support for environments for bashrc and tomcat

Signed-off-by: root <root@localhost.(none)>