Correctly remove temp script directory