fixed socket directory creation