You might want to create the mask earlier in your processing stream with 3dAutomask and then apply the mask at a later point. 3dCliplevel can give you a threshold you might want to try.
Also this might be a good time to point out a new option to 3dAutomask, -erode nn, to erode back nn voxel layers.