Handle case when dist folder does not exist in build script (#185)