Pass through target dir; thanks to Werner Thie