Add fail-safe parameter

I've added a fail-safe parameter to ignore error when remote directory does not exist and command fails safely.