Fix issue with import errors and platform checks

* Fix exceptions ``NotImplementedError``
* Extend the check for linux platforms