s4: Fix missing TLS dir when targetdir is not the default one