Export relative paths in Makefiles properly on Windows

Device identifiers must be explicitly discarded for Windows paths