Use flask.options object to get basedir variable