fix reading of device-files on startup