Added support for PreScripts:

Signed-off-by: David Greaves <david@dgreaves.com>