build fails if res folder does not exist