fix homedir mocking for t/app.t

monkey patches File::HomeDir::my_home and fixes a bug in t/app.t