fixed bug on copy

Added control first of all checking file exist 'cause if the file is not local stream_is_local is not enought