Changed hardcode into the cmd_remote method. Provided add fullpath as arguman