Update AbstractSerialize.php

Fix mkdir