Fixed: Build directory needs to be created before using it