Fix directory delete and jar name