Made the test for an ember directory more specific.