Fixed a bug where if the 'res' folder did not exist, it was not created