BZ-7370: rewrite deps file