now creates data directory and removes empty lib directory