If files contains a directory, change to it and use the filespec.