Added platform detection so the module can choose the correct program to access the camera