Check for stacks path not dashboard

Check for stacks path not dashboard

inDashboard doesn't tell us if we are in a stack so instead we check for
the stack path