removes target-dir and adds version