Bugfix: Wrong scope for file::exists