make sure data directory is created
apply patch from Fons for Ubuntu 12.04
apply the change from Fons also to csh