Revert "Try to get the hardware code from the os.env"

This reverts commit 7e134e541acf67c840e0bd64711c5dc12e756044.