Fix problem with ray output directory being created