Better working directory behavior for Linux