fixed the bug that the build fails if the level and/or assets folder is not created