Fixed hanging when generating for path that doesn't exist