Small fix
Another small utility function for file handling