Fix for ensuring that all parent directories exist while saving a compiled model

#151 / f03f5b49baf6585ac498a2120baeeddce8a6e927 got lost while refactoring the boss_compiler.