Fix build command to handle provider repos correctly