build: fix the problem that was causing object files for src/user/libraries to ignore the variant_dir altogether.