Clean up write dir init code
Remove dead code