Updated resgen script

Now it will check if the Resources directory exists and create it if it
doesn't.