fix directory path for file download