Ensure out directory exists before using it