re-add print-deps option that got lost in the frontend switch
rename variables before looking up static names, fixes #158