Added multi-directory scripting capability