Bug fix in views.add() for handling of home directory.