Fix handling for binary deploy when source is an artifact instead of a d...

...irectory