Fixed /dev/mem file open