Converted get_unconstrained_pspecs to refactored approach to fix error caused by grep without a pspec.