Script runner check for cwd