Fixed File#open flags in linux