Refactored Asset dependency check

This is a refactoring of #238 as specified by @schmittjoh