Fix building extensions without a static/ directory.

Extensions that used the packaging wrappers but didn't have a static/
directory would break. We want to be consistent, so we should allow
this. We now check for the existence before we try to operate on it.