Quick fix for bug that crashes any system running pbd for the first time...

...: os.mkdir doesn't create intermediate directories (like ~/data), so replace with os.makedirs which does.