Add persistence choice for main file search (#182)