Check if a rules directory exists and create it