fix opening of local files - fixes #55