Added scriptFolder named parameter

CD'd to that folder and fixed relative paths.