Added missing directory creation