Emergency legislation that will see hundreds of prisoners released from Scotland’s jails early is only one of the steps needed if the “real issue” of prison overcrowding is to be tackled in the longer term, MSPs have been told.