Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev