TRQ-2342: Merge fix from TRQ-2317/TRQ-1714 and added unit test: spool files left alone when MS is the same as pbs_server and there's an epilogue running.