change usage of toPath with toString
move mktplcExtRefToFetchArgs to file in order to be shared with the new derivations(privately)