added rdirs function to create multiple directories in one shot