Fixing subdirectory deployment sock bugs