fix flask problem when launched via a symlink