themes: Fix enumeration of cursors with srcdir != builddir