Fix additional slash issue when deploying with --config