Change file checks

Changed from using the `whoami` to $HOME. This is much cleaner in the code.