Build client script before starting server