Updated get script to create directory for pages