CRAFTERCMS-558

Fixed error in deployment engine when coping folders to environment store. Added uncaught exception handling.