Change to dependency functions to not rely on HOME being set