Fixing a small bug in the elastic optimization call, and checking if the output file is already exists before executing an alignment step