fixes for write-only workdir on gnu/linux