jcr2vfs: fix and enhance runMigration.sh

 * better parameters handling
 * the script API is now backwards compatible
   with 6.0 tool
 * .bat script needs to be fixed later