get rid of some logging and factor out redundant directory avialability checks