Fix to use absolute paths and fix xcopy