Fix detection of file existance (2)