modified script to detect emulated environments on windows versus unix and build the main file list to copy accordingly