Fixed a bug in mk_pspec.sh where the calfile was hardcoded.