More percent sign doubling support.
TODO: * Allow calling scripts from other directories. * Don't use OS-dependent path processing.