replace all file operations by boost.filesystem