Resolved issues with portability

Added checks for required exe's
Variable expansion, log file copying, etc