Added target-dir option