handle missing HOME env variables - use cwd