Use -p flag when creating directories