Make sure STAGEDIR exists. Fixes #1