Added conversion of tilda to user's home directory when looking for chrome on linux
Moved statements after null exception test into else statement, got rid of unnessecary null checks.