diff --git a/completion.js b/completion.js
index <HASH>..<HASH> 100644
--- a/completion.js
+++ b/completion.js
@@ -1,7 +1,7 @@
 var fs = require('fs');
 var path = require('path');
 
-var HOME = process.env.HOME || process.env.USERPROFILE;
+var HOME = process.env.HOME || process.env.USERPROFILE || '';
 
 var PROFILE = [
 	path.join(HOME, '.bashrc'),
Avoid exception when the HOME and USERPROFILE env var are not defined