make it work with quantal, and create some missing directories