fix doubled-pathname problem

sourceFilename as passed into compile() sometimes already includes a path. Fix is to strip the path using path.basename(). (Also added destinationPath to the log output.)