Loss narrows at American Woodmark