Cleanup: Use centralized method for aptly detection

Fixes bug with empty node[apt]