Added instance datetime fields and populated them correctly. Added some path corrections for when dcmenvgen is installed.