Do not add the path to the variants folder when variant is empty.