Fixed issue when passing files through command line.