Moved file handling to libsyntyche