determine filename from os