#34 use a platform independent way of detecting the working directory provided by @conorroche