Change directory and file creation to use Chef Resources instead of File