Builds asset directories and error files.