Fix deployments file not being created
Better check for isSetup