Fix filesystem stat usage for Linux.