function for calling system and updating filenames

this will better handle mother output file names and be more generic
integrating new sysio function

ran into issues while integrating: sometimes mother doesn’t output
properly.
added check for flipping during aligning sequences

this should catch the need to use flip=T during align