Make atom and tomcat conditional