Rewrite the tilde_expansion function without regular expressions
Created by: nounoursheureux
Problem: Ion uses the regex
crate for tilde expansion, which is not ported to Redox. Right now there is a redox
branch without the regex
crate and without tilde expansion, but this is just a workaround and not really a solution
Solution: We should rewrite the tilde expansion function without regular expressions