UPDATED: hardware_info one more time
UPDATED: using open which is preferd method for checking for files