final fixes to primus baseapi path recognition