fixed platform detection for Ubuntu