Cross-platform board detection with Windows support

Tested on Windows and Ubuntu