PreTaskScript to check output path