detect library types correctly when no project is active