Fix input file paths on linux

This commit fixes Drag and Drop functionality and loading of files
defined on input.