Define directory_of_file only on Windows