copying migration files to host application if there is a target directory