Fixed a typo that prevented the script from removing the temporary working directories