Fixing failure when attempting to make a nested output directory