main/file: fix regexp usage to work with musl