RF-13720: fix resource dependency discovery