Some fixes for running custard as non-root

Please do not merge yet. This requires changes to scraperwiki/charms.