fix flaw in path resolution

Was caught in closurify