Made ps_file_open() return status