Artifact path in serverless-state.json is incorrect with package option

When using serverless package --path option to package the lamda functions.
serverless-state.json artifact path is not updated the package path instead it was pointing to .serverless.

With this issues unable to deploy the packages using CI/CD pipeine