It seems the code supresses any errors caused by not being able to create the new directory and use a depreciated directory. I'll file an issue so this is taken into account for beta 6. Until then, you can look at other packages for inspiration on how to create an extension.