cli should accept files in different directory.

Hi, 
Is there a reason for using the basename instead of the full file name here?