Only create the contents and resources directories when they don't exist.