Add sandbox, clean config, fix bug regarding missing shapedir.