Variable assignment when calling subroutines might not be portable. Notably, it doesn't work with FreeBSD shell, where the value of HOME would be ignored in this case. Since the commands are already executed in a subshell, export the HOME variable to ensure it is properly handled in all shells.