Updating script to v12.1

- fixed an issue when argument -p was used