Deployment script working with JAR