fix finding version at runtime