changed the way directories are created in temp folder
unit test for updating temp script files, only replace temp script files when upload timestamp is later than file modification date