Add support to run from different synplot.

At this time, the script was using the S4 default synplot. Now it can be
set by the user.