     absolutePath = path.resolve directoryPath
     relativePath = absolutePath.replace remoteConfig.path, ''
     if relativePath is absolutePath
-        log.error "Directory is not located on the synchronized directory: #{dirPath}"
+        log.error "Directory is not located on the synchronized directory: #{absolutePath}"
         return callback()
     if relativePath.split('/').length > 2
         dirPath = relativePath.replace "/#{dirName}", ''

    .action removeRemote

program
    .command('replicate <devicename>')
    .description('Replicate DB documents')
    .action runReplication

program
    .command('build-tree <devicename>')

    .action putDirectory

program
    .command('watch-local <devicename>')
    .description('Watch changes on the FS')
    .action watchLocalChanges

program
    .command('watch-remote <devicename>')
    .description('Watch changes on the remote DB')
    .option('-b, --binary', 'automatically fetch binaries')
    .action watchRemoteChanges

program
    .command('display-config')
