CSPACE-5970: Use 'double bracket' notation for several 'if' tests in script to create distributable tarball from Tomcat server folder.