fix backupFolder doesn't process correctly tilda
fix local import not working if backupFolder is relative path