Fixes for profiles breaking templates and installing of non-default deps