Update build script for client and server to be able to generate standalone jars