Inventories (Details) - USD ($)
$ in Thousands
May 31, 2016
Aug. 31, 2015
Inventories    
Raw materials $ 13,074 $ 12,937
Work in process 6,249 6,539
Finished goods 7,282 10,000
Total Inventories $ 26,605 $ 29,476