updated shell script to work with archiva