[PATCH 2/4] tools/mount-flatpak: Create utility function to open a subdirectory