Workaround: export HOME=~ in all the port commands