Fix upload dir and websocket server start