Update build script for best work with categories