Fix statinode on Linux, also fixes false negatives in symlink check