Checking the platform before using xcopy commands