Deal with edge cases.

- Better regexp to find aliases file
- Empty lines and comments in aliases file