install: Break symlinks and min_files into functions.